{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-8">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form"  action="{:url('service/paper/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<input class="search-input" name="keyword" type="text" placeholder="重要文件" id="keyword"  autocomplete="off">
				</form>	
			</div>
			<div class="tool col-2">
				<button id="add" data-url="{:url('service/paper/add')}"><i class="fa fa-plus"></i></button>
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="paper" lay-filter="paper" data-url="{:url('service/paper/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}

<script type="text/javascript" src="__JS__/service/paper.js"></script>


<script type="text/html" id="toolDemo">
	<div>
		
		<a class="layui-btn btn-edit" lay-event="edit" id="editpaper" data-url="{:url('service/paper/edit')}"><i class="fa fa-pencil"></i></a>
  		<a class="layui-btn btn-del" lay-event="del" data-url="{:url('service/paper/del')}"><i class="fa fa-trash"></i></a>

  	
	</div>
</script>
<script type="text/html" id="user">
	{{# if(d.user){ }}
	<span>{{d.user.userName}}</span>
	{{# } }}
</script>


<script type="text/html" id="end" >
	{{# if(d.end=='txt'){ }}
	<img src="__PUBLIC__/static/img/service/111.png" alt="" style="padding-left: 20px">
	{{# } }}
	{{# if (d.end=='docx'){ }}
	<img src="__PUBLIC__/static/img/service/111.png" alt="" style="padding-left: 20px">
	{{# } }}
	{{# if (d.end=='xlsx'){ }}
	<img src="__PUBLIC__/static/img/service/222.png" alt="" style="padding-left: 20px">
	{{# } }}
	{{# if (d.end=='pdf'){ }}
	<img src="__PUBLIC__/static/img/service/444.png" alt="" style="padding-left: 20px">
	{{# } }}
	{{# if (d.end=='pptx'){ }}
	<img src="__PUBLIC__/static/img/service/333.png" alt="" style="padding-left: 20px">
	{{# } }}
</script>


<script type="text/html" id="title">
	{{# if(d.pathInfo){ }}
	<a  href="__PUBLIC__{{d.pathInfo}}" style="color:#1e9fff">{{d.title}}</a>
	{{# }else{ }}
	{{d.title}} <span style="color: red">(未上传)</span>
	{{# } }}
</script>





<script type="text/html" id="isValid">
	<div style="padding-top: 20px;padding-left: 20px;">
		
		{{# if (d.isValid == 0){ }}
		<p> <span class="layui-badge-circle layui-bg-red"><i class="fa fa-close"></i></span></p>
		{{# } }}
		{{# if (d.isValid == 1){ }}
		<p><span class="layui-badge-circle layui-bg-blue"><i class="fa fa-check"></i></span></p>
		{{# } }}
		<br/>

	</div>
</script>
{/block}
